diff --git a/plugin/AdsForJesus/AdsForJesus.php b/plugin/AdsForJesus/AdsForJesus.php index 2288602bd..ddb73c54e 100644 --- a/plugin/AdsForJesus/AdsForJesus.php +++ b/plugin/AdsForJesus/AdsForJesus.php @@ -1,154 +1,154 @@ " . "This will give your users the greatest wisdom of all, as well as invaluable value. "; return $txt ; } public function getName() { return "AdsForJesus"; } public function getUUID() { return "AdsForJesus-43a9-479b-994a-5430dc22958c"; } public function getPluginMenu() { global $global; return "4JesusTV"; } public function getEmptyDataObject() { $obj = new stdClass(); $obj->start = true; $obj->mid25Percent = true; $obj->mid50Percent = true; $obj->mid75Percent = true; $obj->end = true; $obj->topMenuLink = false; return $obj; } public function getHTMLMenuRight() { global $global; $obj = $this->getDataObject(); if(empty($obj->topMenuLink)){ return ''; } return '
  • '; } public function getHeadCode() { $js = ''; $css = ''; //if (!empty($_GET['videoName']) || !empty($_GET['u'])) { if (!empty($_GET['videoName'])) { if (empty($_GET['u'])) { $video = Video::getVideoFromCleanTitle($_GET['videoName']); $showAds = AVideoPlugin::showAds($video['id']); if (!$showAds) { return ""; } } global $global; $css .= ''; $css .= ''; } return $js . $css; } public function getFooterCode() { $js = ''; //if (!empty($_GET['videoName']) || !empty($_GET['u'])) { if (!empty($_GET['videoName'])) { if (empty($_GET['u'])) { $video = Video::getVideoFromCleanTitle($_GET['videoName']); $showAds = AVideoPlugin::showAds($video['id']); if (!$showAds) { - return ""; + //return ""; } } else { $video['duration'] = "01:00:00"; $_GET['videoName'] = "Live-" . uniqid(); } global $global; $video_length = parseDurationToSeconds($video['duration']); $obj = $this->getDataObject(); $js .= ''; $js .= ' '; $js .= ""; $js .= " "; } return $js; } }